package com.ruoyi.whc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.whc.mapper.NearmanMapper;
import com.ruoyi.whc.domain.Nearman;
import com.ruoyi.whc.service.INearmanService;

/**
 * 密接人员记录Service业务层处理
 * 
 * @author whc
 * @date 2022-09-22
 */
@Service
public class NearmanServiceImpl implements INearmanService 
{
    @Autowired
    private NearmanMapper nearmanMapper;

    /**
     * 查询密接人员记录
     * 
     * @param nmid 密接人员记录主键
     * @return 密接人员记录
     */
    @Override
    public Nearman selectNearmanByNmid(Long nmid)
    {
        return nearmanMapper.selectNearmanByNmid(nmid);
    }

    /**
     * 查询密接人员记录列表
     * 
     * @param nearman 密接人员记录
     * @return 密接人员记录
     */
    @Override
    public List<Nearman> selectNearmanList(Nearman nearman)
    {
        return nearmanMapper.selectNearmanList(nearman);
    }

    /**
     * 新增密接人员记录
     * 
     * @param nearman 密接人员记录
     * @return 结果
     */
    @Override
    public int insertNearman(Nearman nearman)
    {
        return nearmanMapper.insertNearman(nearman);
    }

    /**
     * 修改密接人员记录
     * 
     * @param nearman 密接人员记录
     * @return 结果
     */
    @Override
    public int updateNearman(Nearman nearman)
    {
        return nearmanMapper.updateNearman(nearman);
    }

    /**
     * 批量删除密接人员记录
     * 
     * @param nmids 需要删除的密接人员记录主键
     * @return 结果
     */
    @Override
    public int deleteNearmanByNmids(Long[] nmids)
    {
        return nearmanMapper.deleteNearmanByNmids(nmids);
    }

    /**
     * 删除密接人员记录信息
     * 
     * @param nmid 密接人员记录主键
     * @return 结果
     */
    @Override
    public int deleteNearmanByNmid(Long nmid)
    {
        return nearmanMapper.deleteNearmanByNmid(nmid);
    }
}
